package com.chinasofti.test;

public class demo05 {
    public static void main(String[] args) {
        System.out.println(getSum(5));
    }
    public static int getSum(int i){
        if(i==1){
            return i*i;
        }else  return i*getSum(i-1);
    }
}
